package com.baibei.ebec.home.index;

import com.baibei.model.BannerInfo;
import com.baibei.model.ProductInfo;
import com.baibei.model.ShipmentInfo;

import java.util.List;

/**
 * 适配器模型
 * Created by ChenRui on 2017/8/4 0004 14:16.
 */
public class HomeIndexAdapterModel {

    static final int VIEW_TYPE_BANNER = 0; // 广告
    static final int VIEW_TYPE_PERCENT = 1; //
    static final int VIEW_TYPE_SHIPMENT_HEADER = 2; // 船头
    static final int VIEW_TYPE_SHIPMENT_PRODUCT = 3; // 产品
    static final int VIEW_TYPE_AREA = 4; // 区域


    private int mViewType; // 显示类型

    private List<BannerInfo> mBanners; // 广告信息

    private ShipmentInfo mShipmentInfo; // 船信息

    private ProductInfo mProductInfo; // 产品信息

    private int mShipmentIndex; // 产品对应所在船的索引，因为产品在设置实体应用的话，可能导致内存回收不了




    public HomeIndexAdapterModel(int viewType) {
        mViewType = viewType;
    }


    public int getViewType() {
        return mViewType;
    }

    public void setViewType(int viewType) {
        mViewType = viewType;
    }

    public List<BannerInfo> getBanners() {
        return mBanners;
    }

    public void setBanners(List<BannerInfo> banners) {
        mBanners = banners;
    }

    public ShipmentInfo getShipmentInfo() {
        return mShipmentInfo;
    }

    public void setShipmentInfo(ShipmentInfo shipmentInfo) {
        mShipmentInfo = shipmentInfo;
    }

    public ProductInfo getProductInfo() {
        return mProductInfo;
    }

    public void setProductInfo(ProductInfo productInfo) {
        mProductInfo = productInfo;
    }

    public int getShipmentIndex() {
        return mShipmentIndex;
    }

    public void setShipmentIndex(int shipmentIndex) {
        mShipmentIndex = shipmentIndex;
    }
}
